package com.sharer.last.model.dto.category;

import com.sharer.last.base.model.BaseDTO;
import lombok.*;

import javax.validation.constraints.NotBlank;

/**
 * 分类新增和更新入参
 *
 * @ClassName CategoryChangeDTO
 * @Author WangJin
 * @Date 2023/05/20/17:29
 * @Description
 * @Version 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
public class CategoryChangeDTO extends BaseDTO {
    /**
     * id
     */
    private Long id;

    /**
     * 分类名称
     */
    @NotBlank(message = "分类名称不能为空")
    private String categoryName;
}

